#pragma once
#include "imageloader.h"
#include <GL/glut.h>

class RobotPart
{
public:
	RobotPart(void);
	virtual void display();
	virtual void switchTexture();
	virtual GLuint getTexture();
	// for upagrades
	virtual int getUpgradePower();
	virtual int getUpgradeLife();
	
	void drawCube(GLfloat = 1.0f, GLfloat = 0.0f, GLfloat = 1.0f, GLfloat = 0.0f);
	virtual void animate();
	virtual void reset();
	void setAngle(GLfloat);
	void setElevation(GLfloat);
	GLfloat getElevation();
	virtual float getHeight() = 0;
	~RobotPart(void);
protected:
	GLfloat angle;
	GLfloat elevation;
};

